;==========================================================
;
;
;   ██████╗  ██████╗ ██╗  ██╗   ██╗██████╗  █████╗ ██████╗
;   ██╔══██╗██╔═══██╗██║  ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
;   ██████╔╝██║   ██║██║   ╚████╔╝ ██████╔╝███████║██████╔╝
;   ██╔═══╝ ██║   ██║██║    ╚██╔╝  ██╔══██╗██╔══██║██╔══██╗
;   ██║     ╚██████╔╝███████╗██║   ██████╔╝██║  ██║██║  ██║
;   ╚═╝      ╚═════╝ ╚══════╝╚═╝   ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
;
;
;==========================================================

[colors]
background = #2E3440
background-alt =#212121
foreground = #d8dee9
foreground-alt = #10151b
active = #88c0d0
inactive = A3BE8C
secondary = #e60053
empty = #69748c
alert = #bd2c40
bg          =  ${xrdb:background}
bg-alt      =  #212121
fg          =  ${xrdb:foreground}
fg-alt      =  #10151b
red         =  #ff4151
red-alt     =  #d26939
green       =  #26a98b
green-alt   =  #081f2d
yellow      =  #edb54b
yellow-alt  =  #245361
blue        =  #195465
blue-alt    =  #093748
magenta     =  #4e5165
magenta-alt =  #888ba5
cyan        =  #33859d
cyan-alt    =  #599caa
white       =  #98d1ce
white-alt   =  #d3ebe9


[bar/mybar]
;monitor = ${env:MONITOR:HDMI-1}
width =98.50%
height = 20
radius = 0
fixed-center = true
bottom = false
offset-x = 10
offset-y = 10
tray-position = none
tray-padding = 0
override-redirect = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 0
line-color = #f00

border-size = 1
border-color = #2e3440

padding-left = 0
padding-right = 0

module-margin-left = 0
module-margin-right = 0

modules-left =workspaces title
modules-center =calendar clock
modules-right =network temperature cpu memory alsa

locale = ru_RU.UTF-8
font-0 = "Terminus:style=medium:pixelsize=14;3" 
font-1 = "Iosevka Nerd Font:style=Solid:pixelsize=11;3"
font-2 = "Font Awesome 5 Free:style=Solid:pixelsize=11;3"

cursor-scroll = ns-resize
cursor-click = pointer

[module/workspaces]
type = internal/xworkspaces

pin-workspaces = true

enable-click = true

enable-scroll = false

icon-0 = 1;
icon-1 = 2;
icon-2 = 3;
icon-3 = 4;
icon-4 = 5;
icon-5 = 5;
icon-6 = 5;
icon-7 = 5;
icon-8 = 5;
icon-9 = 5;
icon-default = 

format = <label-state>
format-padding = 1
format-background = ${color.shade2}

label-monitor = %name%

label-active = 
label-active-foreground = ${color.foreground}

label-occupied = 
label-occupied-foreground = ${color.foreground}

label-urgent = 
label-urgent-foreground = ${color.background}

label-empty = 

label-active-padding = 1
label-urgent-padding = 1
label-occupied-padding = 1
label-empty-padding = 1

[module/title]
type = internal/xwindow

format = <label>
#format-prefix = 

label = "  %title%"
label-maxlen = 58

[module/clock]
type = internal/date

interval = 1.0

time = %H:%M

format =  <label>
format-prefix = " "
format-foreground = ${colors.foreground}

label = %time%

[module/calendar]
type = internal/date
interval = 1.0

date = %a.%d

format = <label>
format-foreground = ${colors.foreground}
format-prefix =" "
label =%date%

[module/battery]
type = internal/battery
battery = BAT0
adapter = AC0
full-at = 96
time-format = %_H:%M

format-charging = <animation-charging> <label-charging>
format-charging-underline = ${colors.background}

format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%%%time%
label-discharging-foreground=${colors.white}
format-discharging-underline = ${self.format-charging-underline}

format-full =  
format-full-prefix-foreground = ${colors.foreground}
format-full-underline = ${self.format-charging-underline}

ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
ramp-capacity-0-foreground = ${colors.red}

label-charging = %percentage%%%time%
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-foreground = ${colors.green}
animation-charging-framerate = 750
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "  "
format-prefix-foreground = ${color.red}
format-foreground = ${color.fg}
format-background = ${color.bg}
label = "%{A1:terminal -e gtop &:}%percentage%% %{A}"

[module/memory]
type = internal/memory

interval = 1

format = <label>
format-prefix = " "
format-prefix-foreground = ${colors.fg}
format-foreground = ${colors.fg}
format-background = ${colors.bg}

label = "%{A1:terminal -e htop &:} %gb_used% %{A}"

[module/temperature]
type = internal/temperature
interval = 1
thermal-zone = 0
warn-temperature = 80
format = <ramp> <label>
format-padding = 2
format-warn = <ramp> <label-warn>
format-warn-padding = 2
label = %temperature-c%
label-warn = %temperature-c% жарко 
label-warn-foreground = #e4b226
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-3 = 
ramp-4 = 

[module/alsa]
type = internal/alsa

format-volume = <ramp-volume> <label-volume>
format-volume-background = ${color.shade6}
format-volume-foreground = ${color.modulefg}
format-volume-padding = 2

label-volume = %percentage%%

format-muted-prefix = 
label-muted = " Muted"
format-muted-background = ${color.shade6}
format-muted-foreground = ${color.modulefg}
format-muted-padding = 2

ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 

[module/network]
type = internal/network
interface = enp2s0
interval = 1.0

format-connected = <label-connected>
label-connected = %ifname%
label-connected-background = ${colors.bg}
label-connected-foreground = ${colors.green}
label-connected-padding = 1

format-disconnected = <label-disconnected>
label-disconnected = Offline
label-disconnected-background = ${colors.bg}
label-disconnected-foreground = ${colors.red}
label-disconnected-padding = 1
